package com.koron.order.repair.mapper;

import com.koron.order.repair.bean.entity.RepairItemPo;
import com.koron.order.repair.bean.vo.RepairItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (RepairItem)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-23 15:53:22
 */
public interface RepairItemMapper {

    RepairItemPo queryById(String id);

    List<RepairItemPo> queryList(RepairItemPo repairItem);

    int insert(RepairItemPo repairItem);

    int update(RepairItemPo repairItem);

    int deleteById(String id);

    List<RepairItemVo> queryByEquipmentId(@Param("repairId") String orderId, @Param("repairEquipmentId") String repairEquipmentId);

    int insertBatch(List<RepairItemPo> repairItemPos);

    int deleteByRepairEquipmentId(String repairEquipId);

    int deleteByRepairId(String repairId);
}